package com.cnswhy.cloud.server.core.service.customer.impl;


import com.cnswhy.cloud.common.core.base.service.SuperServiceImpl;
import com.cnswhy.cloud.common.core.mybatis.conditions.Wraps;
import com.cnswhy.cloud.server.core.dao.CustomerBankMapper;
import com.cnswhy.cloud.server.core.entity.CustomerBank;
import com.cnswhy.cloud.server.core.service.customer.CustomerBankService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 业务实现类
 * 
 * </p>
 *
 * @author cnswhy
 * @date 2020-09-30
 */
@Slf4j
@Service

public class CustomerBankServiceImpl extends SuperServiceImpl<CustomerBankMapper, CustomerBank> implements CustomerBankService {
    @Override
    public List<CustomerBank> getCustomerBankList(Long customerId) {
        List<CustomerBank> list = super.list(Wraps.<CustomerBank>lbQ().eq(CustomerBank::getCustomerId, customerId));
        return list;
    }
}
